home *** CD-ROM | disk | FTP | other *** search
/ ETO Development Tools 1 / ETO Development Tools 1.iso / Essentials / MacApp Documentation / Class&Method Reference (stack) / MacApp 2.0 Reference / MacApp 2.0 Reference / card_340266.txt < prev    next >
Encoding:
Text File  |  1990-07-24  |  1.1 KB  |  33 lines

  1. -- card: 340266 from stack: in.0 Reference
  2. -- bmap block id: 0
  3. -- flags: 0000
  4. -- background id: 177597
  5. -- name: OffsetPtr
  6.  
  7.  
  8. -- part contents for background part 1
  9. ----- text -----
  10. OffsetPtr adds the specified offset to the given pointer, ensuring that the resulting pointer is properly word-aligned.
  11. The p parameter is the pointer that is to be offset when the routine is called; when it returns, p is the resulting pointer. The offset parameter is the number of bytes to add to the pointer‚Äôs value to obtain the new pointer.
  12. MacApp calls OffsetPtr from a variety of methods that manipulate memory or perform low-level data access with Pascal records. You can use this routine in a similar fashion.
  13.  
  14. -- part contents for background part 5
  15. ----- text -----
  16. Unit: UMacApp
  17.  
  18.  
  19. -- part contents for background part 23
  20. ----- text -----
  21. ROUTINE
  22.  
  23. -- part contents for background part 2
  24. ----- text -----
  25. OffsetPtr
  26.  
  27. -- part contents for background part 20
  28. ----- text -----
  29. PROCEDURE OffsetPtr(VAR p: UNIV LONGINT; offset: LONGINT);
  30.  
  31. -- part contents for background part 40
  32. ----- text -----
  33. 341 of 498 Routines